<{include file="common/header.tpl"}>
<script src="<{$smarty.const._CDN_}>/resource/laydate/laydate.js" type="text/javascript"></script>
<script src="<{$smarty.const._CDN_}>/resource/layer/layer.js" type="text/javascript"></script>
<style>
.fcontent .ziying { margin: 1em 2em; padding: 1em; background-color: #eee; border: 1px solid silver; }
ul { list-style: none; line-height: 2em; }
ul li { display: inline-block; width: 200px; }
ul li img { position: relative; bottom: -20px; padding-left: 1em; }
.submit { padding: 3em; }
</style>

<div class="fcontent">

    <div class="ziying">
     <h3><{$ziying.name}></h3>
     <p><img src="<{$ziying.thumb}>" width="128"></p>
     <p>行程天数: <{$ziying.days}> 天</p>
     <p>可接待人数: <{$ziying.serviceMinPersons}>人 到 <{$ziying.serviceMaxPersons}>人</p>
     <p>行程介绍: <{$ziying.summary}></p>
    </div>

    <form action="" method="POST" onSubmit="return check()">
     <ul>
     <{foreach from=$cates item="cat"}>
        <li style="display: block;border: 1px solid #333;text-align: center;width: 100px;"><{$cat.name}></li>
        <{foreach from=$cat.children item="child"}>
        <li><input type="checkbox" name="cid[]" value="<{$child.id}>" <{if $child.id|in_array:$catIds}>checked="checked"<{/if}>> 
        <span><{$child.name}></span>
        <img src="<{$child.iconUrl}>" width="48"></li>
        <{/foreach}>
     <{/foreach}>
     </ul>
     <p class="submit"><input type="submit" name="submitOp" value="设置"></p>
     </form>
</div>
<script type="text/javascript">
function check(){
    if(!$("input[type='checkbox']").is(':checked')){
      layer.msg('请选择类型');
      return false;
    }

}
</script>
<{include file="common/footer.tpl"}>
